﻿<%@ Page Language="C#" MasterPageFile="~/JOINT/MstPage_JOINT.master" AutoEventWireup="true" CodeFile="frmJ_TraineeGroupCheck.aspx.cs" Inherits="JOINT_frmJ_TraineeGroupCheck" Title="入学情報（共通情報）登録（確認）" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
入学情報（共通情報）登録（確認）
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script type="text/javascript" src="../Js/jquery.min.js"></script>
<script type="text/javascript" src="../js/Validation.js"></script>
<script type="text/javascript">
    $(document).ready(function(e) {
        splitThousand();
    });
    function ReplaceAll(Source, stringToFind, stringToReplace) { // so nhep vao cach 3 so thi co dau cham.
        var temp = Source;
        var index = temp.indexOf(stringToFind);
        while (index != -1) {
            temp = temp.replace(stringToFind, stringToReplace);
            index = temp.indexOf(stringToFind);
        }
        return temp;
    }

    function mysplit(data) {

        var val = ReplaceAll(data, ',', '');
        var val_arr = val.split('');
        var mirror_val = '';
        var return_val = '';
        var num = 0;
        for (i = (val_arr.length - 1); i >= 0; i--) {
            if (num == 3) {
                mirror_val += "," + val_arr[i];
                num = 0;
            } else {
                mirror_val += val_arr[i];
            }
            num++;
        }

        var mirror_val_arr = mirror_val.split('');

        for (i = (mirror_val_arr.length - 1); i >= 0; i--) {
            return_val += mirror_val_arr[i];
        }
        return return_val;
    }

    function splitThousand() {
        var el = $('#ctl00_ContentPlaceHolder1_lbl_強制退去出国回数').text();
        var chuoi = el;
        if (chuoi == "") return;
        if (isNaN(chuoi)) return;
        var index_dot_end = chuoi.lastIndexOf('.');
        var result = "";

        if (index_dot_end != "-1") {//exits dot into numberics
            var data = chuoi.substring(0, index_dot_end);
            result = mysplit(data);

            var form_dot_end = chuoi.substring(index_dot_end, chuoi.length);
            if (form_dot_end.length == 2)
                result += chuoi.substring(index_dot_end, chuoi.length) + '0';
            else if (form_dot_end.length == 1)
                result += chuoi.substring(index_dot_end, chuoi.length) + '00';
            else
                result += chuoi.substring(index_dot_end, index_dot_end + 3);
        }
        else {
            result = mysplit(chuoi) + '';
        }
        $('#ctl00_ContentPlaceHolder1_lbl_強制退去出国回数').text(result);
    }
</script>
<style type="text/css">
    .set_width
    {
        display: block;
        float: left;
        line-height: 23px;
        padding-right: 10px;
        width: 400px;
        word-wrap: break-word;
    }
</style>
    <div class="maindiv1" style="line-height:20px">
        <div class="detail-admin-row" >
        <br />
            <span class="detail-admin-label">グループ名 :</span>
            <asp:Label ID="lbl_グループ名" runat="server" CssClass="set_width"></asp:Label>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" >入学予定日 :</span>&nbsp;
            <asp:Label ID="lbl_入学予定日" runat="server" CssClass="set_width" Text="&nbsp;"></asp:Label>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" >卒業予定日 :</span>&nbsp;
            <asp:Label ID="lbl_卒業予定日" runat="server" CssClass="set_width" Text="&nbsp;"></asp:Label>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" >入学日 :</span>&nbsp;
            <asp:Label ID="lbl_入学日" runat="server" CssClass="set_width" Text="&nbsp;"></asp:Label>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" >卒業日 :</span>&nbsp;
            <asp:Label ID="lbl_卒業日" runat="server" CssClass="set_width" Text="&nbsp;"></asp:Label>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" >入国予定年月日 :</span>&nbsp;
            <asp:Label ID="lbl_入国予定年月日" runat="server" CssClass="set_width" Text="&nbsp;"></asp:Label>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" >入国年月日 :</span>&nbsp;
            <asp:Label ID="lbl_入国年月日" runat="server" CssClass="set_width" Text="&nbsp;"></asp:Label>
        </div>
        <div class="detail-admin-row" >
            <span class="detail-admin-label">入国特記事項 :</span>
            <asp:Label ID="lbl_入国特記事項" runat="server" CssClass="set_width"></asp:Label>
        </div>
        <div class="detail-admin-row" >
            <span class="detail-admin-label">上陸港 :</span>
            <asp:Label ID="lbl_上陸港" runat="server" CssClass="set_width" Text=""></asp:Label>
        </div>
        <div class="detail-admin-row" >
            <span class="detail-admin-label">犯罪理由処分 :</span>
            <asp:Label ID="lbl_犯罪理由処分" runat="server" CssClass="set_width" Text=""></asp:Label>
            
        </div>
        <div class="detail-admin-row" >
            <span class="detail-admin-label">強制退去出国 :</span>
            <asp:Label ID="lbl_強制退去出国" runat="server" CssClass="set_width" Text=""></asp:Label>
            
        </div>
         <div class="detail-admin-row" >
            <span class="detail-admin-label">強制退去出国回数 :</span>
            <asp:Label ID="lbl_強制退去出国回数" runat="server" CssClass="set_width" Text=""></asp:Label>
            
        </div>
         <div class="detail-admin-row" >
            <span class="detail-admin-label">強制退去出国送還歴 :</span>
            <asp:Label ID="lbl_強制退去出国送還歴" runat="server" CssClass="set_width" Text=""></asp:Label>
        </div>
        <div class="detail-admin-row" >
            <span class="detail-admin-label">保証金徴収 :</span>
            <asp:Label ID="lbl_保証金徴収" runat="server" CssClass="set_width" Text=""></asp:Label>
        </div>
         <div class="detail-admin-row" >
            <span class="detail-admin-label">保証金徴収管理機関 :</span>
            <asp:Label ID="lbl_保証金徴収管理機関" runat="server" CssClass="set_width" Text=""></asp:Label>
        </div>
         <div class="detail-admin-row" >
            <span class="detail-admin-label">保証金徴収財産 :</span>
            <asp:Label ID="lbl_保証金徴収財産" runat="server" CssClass="set_width" Text=""></asp:Label>
        </div>
        <div class="div_height20"></div>
                <div class="btn_last floatR" style="padding-right:50px">
                <asp:Button ID="btn確認"  runat="server" Text="登録" OnClick="btn確認_Click" CssClass="btn"  />
                </div>
        <div class="div_height20"></div>
    </div>
<div>&nbsp;</div>
  <br />
</asp:Content>

